package com.nanrui.mutualinductor.domains;

import com.nanrui.mutualinductor.data.DKPowerData;

import java.math.RoundingMode;
import java.text.DecimalFormat;

public class DJGRegulationTransformerViewInfo {
    public static final short STATUS_BTW_STEP = 3;
    public static final short STATUS_FINISH = 5;
    public static final short STATUS_NONE = 1;
    public static final short STATUS_STEP1 = 2;
    public static final short STATUS_STEP2 = 4;
    private static final double UPPER_LIMIT = Math.pow(10.0D, 8.0D);
    private String[] dErrors = new String[3];
    private String[] fErrors = new String[3];
    private float mMeaWinMiniLoad;
    private float mMeaWinRatedLoad;
    private float mPhaseAngle;
    private float mRatedPrimary;
    private float mRatedSecondary;
    private short mGrade;
    private float sRatedSecondary2;
    private short sGrade2;
    private float sRatedSecondary;
    private short sGrade;


    private short mStatus;
    private float mSurWinMiniLoad;
    private float mSurWinRatedLoad;
    private float mSurWinRatedLoad2;
    private float mSurWinMiniLoad2;
    private float mSurWinRatedLoad3;
    private float mSurWinMiniLoad3;

    private static final DecimalFormat p0Formatter = new DecimalFormat("#0");
    private static final DecimalFormat p1Formatter = new DecimalFormat("#0.00");
    private static final DecimalFormat p2Formatter = new DecimalFormat("#0.00");
    private static final DecimalFormat p3Formatter = new DecimalFormat("#0.000");

    private Float sB;
    private Float sDCR;
    private float[] sDErrors;
    private float[] sFErrors;
    private Float sG;
    private Float sPhaseError;
    private Float sPrimaryU;
    private Float sQuadratureError;
    private Short sResult;
    private Short sResult2;
    private Short sResult3;
    private Float sSecondaryR;
    private Float sSecondaryU;


    private float[] sUErrors;
    private float[] sURoundErrors;
    private float[] sPhaseRoundDisps;
    private float[] sPhaseDisps;
    private float[] sUErrors2;
    private float[] sURoundErrors2;
    private float[] sPhaseRoundDisps2;
    private float[] sPhaseDisps2;
    private float[] sUErrors3;
    private float[] sURoundErrors3;
    private float[] sPhaseRoundDisps3;
    private float[] sPhaseDisps3;


    private float mRatedCapacitance;//额定电容
    private float pl;//频率

    private Float sXb;

    private String[] uErrors2 = new String[5];
    private String[] uRoundErrors2 = new String[5];
    private String[] phaseDisps2 = new String[5];
    private String[] phaseRoundDisps2 = new String[5];

    private String[] uErrors3 = new String[5];
    private String[] uRoundErrors3 = new String[5];
    private String[] phaseDisps3 = new String[5];
    private String[] phaseRoundDisps3 = new String[5];


    private String[] uErrors = new String[5];
    private String[] uRoundErrors = new String[5];
    private String[] phaseDisps = new String[5];
    private String[] phaseRoundDisps = new String[5];

    static {
        p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        p1Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        p2Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        p3Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
    }




    public boolean getIsNotRunning() {
        int i = this.mStatus;
        if (i == 1 || i == 5) {
            return false;
        }
        return true;
    }

    public String getMGrade() {
        return DKPowerData.PTGrade.getStringByNumber(this.mGrade);
    }

    public String getMMeaWinMiniLoad() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mMeaWinMiniLoad);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMMeaWinRatedLoad() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mMeaWinRatedLoad);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMPhaseAngle() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mPhaseAngle);
        localStringBuilder.append("");
        return localStringBuilder.toString();
    }

    public String getMRatedPrimary() {
        if (mRatedPrimary == 0F) {
            return "";
        }
        if (this.mRatedSecondary == 100.0F) {
            return DKPowerData.PT1ndVoltage.getStringByNumber(this.mRatedPrimary);
        }
        if (this.mRatedSecondary == DKPowerData.PT_2ND_VOLTAGE_RADICAL_100) {
            return DKPowerData.PT1ndVoltageRadical.getStringByNumber(this.mRatedPrimary);
        }
        return "";
    }

    public String getMRatedSecondary() {
        if (mRatedSecondary == 0F) {
            return "";
        }
        return DKPowerData.PT2ndVoltage.getStringByNumber(this.mRatedSecondary);
    }

    public String getMSurWinMiniLoad() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mSurWinMiniLoad);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMSurWinRatedLoad() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mSurWinRatedLoad);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMSurWinMiniLoad2() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mSurWinMiniLoad2);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMSurWinRatedLoad2() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mSurWinRatedLoad2);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMSurWinMiniLoad3() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mSurWinMiniLoad3);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }

    public String getMSurWinRatedLoad3() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append(this.mSurWinRatedLoad3);
//        localStringBuilder.append("VA");
        return localStringBuilder.toString();
    }


    public String getMeasureStatus() {
        String str;
        if ((this.mStatus != 2) && (this.mStatus != 4)) {
            if (this.mStatus == 3) {
                str = "启动第二步";
            } else {
                str = "启动第一步";
            }
        } else {
            str = "停止";
        }
        return str;
    }

    public String getSB() {
        Object localObject;
        if ((this.sB != null) && (!Float.isNaN(this.sB.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p2Formatter.format(this.sB));
            ((StringBuilder) localObject).append("mS");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String getSDCR() {
        String str;
        if ((this.sDCR != null) && (!Float.isNaN(this.sDCR.floatValue()))) {
            str = this.p3Formatter.format(this.sDCR);
        } else {
            str = null;
        }
        return str;
    }

    public String[] getSDErrors() {
        if (this.sDErrors == null) {
            return new String[3];
        }
        for (int i = 0; i < this.dErrors.length; i++) {
            String[] arrayOfString = this.dErrors;
            String str;
            if (this.sDErrors[i] < UPPER_LIMIT) {
                str = this.p3Formatter.format(Float.valueOf(this.sDErrors[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.dErrors;
    }

    public String[] getSFErrors() {
        if (this.sFErrors == null) {
            return new String[3];
        }
        for (int i = 0; i < this.fErrors.length; i++) {
            String[] arrayOfString = this.fErrors;
            String str;
            if (this.sFErrors[i] < UPPER_LIMIT) {
                str = this.p3Formatter.format(Float.valueOf(this.sFErrors[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.fErrors;
    }

    public String getSG() {
        Object localObject;
        if ((this.sG != null) && (!Float.isNaN(this.sG.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p2Formatter.format(this.sG));
            ((StringBuilder) localObject).append("mS");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String[] getSPhaseDisps() {
        if (this.sPhaseDisps == null) {
            return new String[5];
        }

        for (int i = 0; i < this.sPhaseDisps.length; i++) {
            String[] arrayOfString = this.phaseDisps;
            String str;
            if (this.sPhaseDisps[i] < UPPER_LIMIT) {
                str = p1Formatter.format(Float.valueOf(this.sPhaseDisps[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.phaseDisps;
    }

    public String[] getSPhaseDisps2() {
        if (this.sPhaseDisps2 == null) {
            return new String[5];
        }

        for (int i = 0; i < this.sPhaseDisps2.length; i++) {
            String[] arrayOfString = this.phaseDisps2;
            String str;
            if (this.sPhaseDisps2[i] < UPPER_LIMIT) {
                str = p1Formatter.format(Float.valueOf(this.sPhaseDisps2[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.phaseDisps2;
    }

    public String[] getSPhaseDisps3() {
        if (this.sPhaseDisps3 == null) {
            return new String[5];
        }

        for (int i = 0; i < this.sPhaseDisps3.length; i++) {
            String[] arrayOfString = this.phaseDisps3;
            String str;
            if (this.sPhaseDisps3[i] < UPPER_LIMIT) {
                str = p1Formatter.format(Float.valueOf(this.sPhaseDisps3[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.phaseDisps3;
    }

    public String getSPhaseError() {
        Object localObject;
        if ((this.sPhaseError != null) && (!Float.isNaN(this.sPhaseError.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p3Formatter.format(this.sPhaseError));
            ((StringBuilder) localObject).append("%");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String[] getSPhaseRoundDisps() {

        DecimalFormat p0Formatter;
        if (this.sPhaseRoundDisps == null) {
            return new String[5];
        }
        if (mGrade == DKPowerData.PT_GRADES_NUMBER[2]) {
            p0Formatter = new DecimalFormat("#0.0");
            p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        } else {
            p0Formatter = new DecimalFormat("#0");
            p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        }
        for (int i = 0; i < this.sPhaseRoundDisps.length; i++) {
            String[] arrayOfString = this.phaseRoundDisps;
            String str;
            if (this.sPhaseRoundDisps[i] < UPPER_LIMIT) {
                str = p0Formatter.format(Float.valueOf(this.sPhaseRoundDisps[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.phaseRoundDisps;
    }

    public String[] getSPhaseRoundDisps2() {

        DecimalFormat p0Formatter;
        if (this.sPhaseRoundDisps2 == null) {
            return new String[5];
        }
        if (sGrade == DKPowerData.PT_GRADES_NUMBER[2]) {
            p0Formatter = new DecimalFormat("#0.0");
            p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        } else {
            p0Formatter = new DecimalFormat("#0");
            p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        }
        for (int i = 0; i < this.sPhaseRoundDisps2.length; i++) {
            String[] arrayOfString = this.phaseRoundDisps;
            String str;
            if (this.sPhaseRoundDisps2[i] < UPPER_LIMIT) {
                str = p0Formatter.format(Float.valueOf(this.sPhaseRoundDisps2[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.phaseRoundDisps2;
    }

    public String[] getSPhaseRoundDisps3() {

        DecimalFormat p0Formatter;
        if (this.sPhaseRoundDisps3 == null) {
            return new String[5];
        }
        if (sGrade == DKPowerData.PT_GRADES_NUMBER[2]) {
            p0Formatter = new DecimalFormat("#0.0");
            p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        } else {
            p0Formatter = new DecimalFormat("#0");
            p0Formatter.setRoundingMode(RoundingMode.HALF_DOWN);
        }
        for (int i = 0; i < this.sPhaseRoundDisps3.length; i++) {
            String[] arrayOfString = this.phaseRoundDisps3;
            String str;
            if (this.sPhaseRoundDisps3[i] < UPPER_LIMIT) {
                str = p0Formatter.format(Float.valueOf(this.sPhaseRoundDisps3[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.phaseRoundDisps3;
    }


    public String getSPrimaryU() {
        Object localObject;
        if ((this.sPrimaryU != null) && (!Float.isNaN(this.sPrimaryU.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p2Formatter.format(this.sPrimaryU));
            ((StringBuilder) localObject).append("V");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String getSQuadratureError() {
        Object localObject;
        if ((this.sQuadratureError != null) && (!Float.isNaN(this.sQuadratureError.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p3Formatter.format(this.sQuadratureError));
            ((StringBuilder) localObject).append("%");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String getSResult() {
        String str;
        if ((this.sResult != null) && (this.sResult.shortValue() != 2)) {
            if (this.sResult.shortValue() == 0) {
                str = "是";
            } else {
                str = "否";
            }
        } else {
            str = null;
        }
        return str;
    }
    public String getSResult2() {
        String str;
        if ((this.sResult2 != null) && (this.sResult2.shortValue() != 2)) {
            if (this.sResult2.shortValue() == 0) {
                str = "是";
            } else {
                str = "否";
            }
        } else {
            str = null;
        }
        return str;
    }
    public String getSResult3() {
        String str;
        if ((this.sResult3 != null) && (this.sResult3.shortValue() != 2)) {
            if (this.sResult3.shortValue() == 0) {
                str = "是";
            } else {
                str = "否";
            }
        } else {
            str = null;
        }
        return str;
    }

    public String getSSecondaryR() {
        Object localObject;
        if ((this.sSecondaryR != null) && (!Float.isNaN(this.sSecondaryR.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p3Formatter.format(this.sSecondaryR));
            ((StringBuilder) localObject).append("Ω");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String getSSecondaryU() {
        Object localObject;
        if ((this.sSecondaryU != null) && (!Float.isNaN(this.sSecondaryU.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p2Formatter.format(this.sSecondaryU));
            ((StringBuilder) localObject).append("V");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public String[] getSUErrors() {
        if (this.sUErrors == null) {
            return new String[5];
        }
        for (int i = 0; i < this.sUErrors.length; i++) {
            String[] arrayOfString = this.uErrors;
            String str;
            if (this.sUErrors[i] < UPPER_LIMIT) {
                str = this.p3Formatter.format(Float.valueOf(this.sUErrors[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.uErrors;
    }

    public String[] getSUErrors2() {
        if (this.sUErrors2 == null) {
            return new String[5];
        }
        for (int i = 0; i < this.sUErrors2.length; i++) {
            String[] arrayOfString = this.uErrors2;
            String str;
            if (this.sUErrors2[i] < UPPER_LIMIT) {
                str = this.p3Formatter.format(Float.valueOf(this.sUErrors[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.uErrors2;
    }

    public String[] getSUErrors3() {
        if (this.sUErrors3 == null) {
            return new String[5];
        }
        for (int i = 0; i < this.sUErrors3.length; i++) {
            String[] arrayOfString = this.uErrors3;
            String str;
            if (this.sUErrors3[i] < UPPER_LIMIT) {
                str = this.p3Formatter.format(Float.valueOf(this.sUErrors[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.uErrors3;
    }


    public String[] getSURoundErrors() {
        if (this.sURoundErrors == null) {
            return new String[5];
        }
        for (int i = 0; i < this.sURoundErrors.length; i++) {
            String[] arrayOfString = this.uRoundErrors;
            String str;
            if (this.sURoundErrors[i] < UPPER_LIMIT) {
                str = this.p2Formatter.format(Float.valueOf(this.sURoundErrors[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.uRoundErrors;
    }

    public String[] getSURoundErrors2() {
        if (this.sURoundErrors2 == null) {
            return new String[5];
        }
        for (int i = 0; i < this.sURoundErrors2.length; i++) {
            String[] arrayOfString = this.uRoundErrors2;
            String str;
            if (this.sURoundErrors2[i] < UPPER_LIMIT) {
                str = this.p2Formatter.format(Float.valueOf(this.sURoundErrors2[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.uRoundErrors2;
    }

    public String[] getSURoundErrors3() {
        if (this.sURoundErrors3 == null) {
            return new String[5];
        }
        for (int i = 0; i < this.sURoundErrors3.length; i++) {
            String[] arrayOfString = this.uRoundErrors;
            String str;
            if (this.sURoundErrors3[i] < UPPER_LIMIT) {
                str = this.p2Formatter.format(Float.valueOf(this.sURoundErrors3[i]));
            } else {
                str = null;
            }
            arrayOfString[i] = str;
        }
        return this.uRoundErrors3;
    }

    public String getSXb() {
        Object localObject;
        if ((this.sXb != null) && (!Float.isNaN(this.sXb.floatValue()))) {
            localObject = new StringBuilder();
            ((StringBuilder) localObject).append(this.p3Formatter.format(this.sXb));
            ((StringBuilder) localObject).append("Ω");
            localObject = ((StringBuilder) localObject).toString();
        } else {
            localObject = null;
        }
        return (String) localObject;
    }

    public short getmGrade() {
        return this.mGrade;
    }

    public short getsGrade() {
        return this.sGrade;
    }

    public short getsGrade2() {
        return this.sGrade2;
    }

    public float getmMeaWinMiniLoad() {
        return this.mMeaWinMiniLoad;
    }


    public float getmMeaWinRatedLoad() {
        return this.mMeaWinRatedLoad;
    }

    public float getmPhaseAngle() {
        return this.mPhaseAngle;
    }

    public float getmRatedPrimary() {
        return this.mRatedPrimary;
    }

    public float getmRatedSecondary() {
        return this.mRatedSecondary;
    }
    public float getsRatedSecondary() {
        return this.sRatedSecondary;
    }
    public float getsRatedSecondary2() {
        return this.sRatedSecondary2;
    }
    public float getmRatedCapacitance() {
        return mRatedCapacitance;
    }

    public float getPl() {
        return pl;
    }

    public short getmStatus() {
        return this.mStatus;
    }

    public float getmSurWinMiniLoad() {
        return this.mSurWinMiniLoad;
    }
    public float getmSurWinMiniLoad2() {
        return this.mSurWinMiniLoad2;
    }

    public float getmSurWinRatedLoad() {
        return this.mSurWinRatedLoad;
    }
    public float getmSurWinRatedLoad2() {
        return this.mSurWinRatedLoad2;
    }


    public Float getsB() {
        return this.sB;
    }

    public Float getsDCR() {
        return this.sDCR;
    }

    public float[] getsDErrors() {
        return this.sDErrors;
    }

    public float[] getsFErrors() {
        return this.sFErrors;
    }

    public Float getsG() {
        return this.sG;
    }

    public float[] getsPhaseDisps() {
        return this.sPhaseDisps;
    }

    public Float getsPhaseError() {
        return this.sPhaseError;
    }

    public float[] getsPhaseRoundDisps() {
        return this.sPhaseRoundDisps;
    }

    public Float getsPrimaryU() {
        return this.sPrimaryU;
    }

    public Float getsQuadratureError() {
        return this.sQuadratureError;
    }

    public Short getsResult() {
        return this.sResult;
    }
    public Short getsResult2() {
        return this.sResult2;
    }
    public Short getsResult3() {
        return this.sResult3;
    }

    public Float getsSecondaryR() {
        return this.sSecondaryR;
    }

    public Float getsSecondaryU() {
        return this.sSecondaryU;
    }

    public float[] getsUErrors() {
        return this.sUErrors;
    }

    public float[] getsURoundErrors() {
        return this.sURoundErrors;
    }

    public Float getsXb() {
        return this.sXb;
    }

    public DJGRegulationTransformerViewInfo setmGrade(short paramShort) {
        this.mGrade = ((short) paramShort);
        return this;
    }

    public DJGRegulationTransformerViewInfo setmMeaWinMiniLoad(float paramFloat) {
        this.mMeaWinMiniLoad = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setmMeaWinRatedLoad(float paramFloat) {
        this.mMeaWinRatedLoad = paramFloat;
        return this;
    }


    public DJGRegulationTransformerViewInfo setmPhaseAngle(float paramFloat) {
        this.mPhaseAngle = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setmRatedPrimary(float paramFloat) {
        this.mRatedPrimary = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setmRatedCapacitance(float mRatedCapacitance) {
        this.mRatedCapacitance = mRatedCapacitance;
        return this;

    }

    public DJGRegulationTransformerViewInfo setPl(float pl) {
        this.pl = pl;
        return this;
    }

    public DJGRegulationTransformerViewInfo setmRatedSecondary(float paramFloat) {
        this.mRatedSecondary = paramFloat;
        return this;
    }


    public DJGRegulationTransformerViewInfo setmStatus(short paramShort) {
        this.mStatus = ((short) paramShort);
        return this;
    }

    public DJGRegulationTransformerViewInfo setmSurWinMiniLoad(float paramFloat) {
        this.mSurWinMiniLoad = paramFloat;
        return this;
    }
    public DJGRegulationTransformerViewInfo setmSurWinMiniLoad2(float paramFloat) {
        this.mSurWinMiniLoad2 = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setmSurWinRatedLoad(float paramFloat) {
        this.mSurWinRatedLoad = paramFloat;
        return this;
    }
    public DJGRegulationTransformerViewInfo setmSurWinRatedLoad2(float paramFloat) {
        this.mSurWinRatedLoad2 = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsB(Float paramFloat) {
        this.sB = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsDCR(Float paramFloat) {
        this.sDCR = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsDErrors(float[] paramArrayOfFloat) {
        this.sDErrors = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsFErrors(float[] paramArrayOfFloat) {
        this.sFErrors = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsG(Float paramFloat) {
        this.sG = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseDisps(float[] paramArrayOfFloat) {
        this.sPhaseDisps = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseDisps2(float[] paramArrayOfFloat) {
        this.sPhaseDisps2 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseDisps3(float[] paramArrayOfFloat) {
        this.sPhaseDisps3 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseError(Float paramFloat) {
        this.sPhaseError = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseRoundDisps(float[] paramArrayOfFloat) {
        this.sPhaseRoundDisps = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseRoundDisps2(float[] paramArrayOfFloat) {
        this.sPhaseRoundDisps2 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPhaseRoundDisps3(float[] paramArrayOfFloat) {
        this.sPhaseRoundDisps3 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsPrimaryU(Float paramFloat) {
        this.sPrimaryU = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsQuadratureError(Float paramFloat) {
        this.sQuadratureError = paramFloat;
        return this;
    }

    public void setsResult(Short paramShort) {
        this.sResult = paramShort;
    }
    public void setsResult2(Short paramShort2) {
        this.sResult2 = paramShort2;
    }
    public void setsResult3(Short paramShort3) {
        this.sResult3 = paramShort3;
    }

    public DJGRegulationTransformerViewInfo setsSecondaryR(Float paramFloat) {
        this.sSecondaryR = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsSecondaryU(Float paramFloat) {
        this.sSecondaryU = paramFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsUErrors(float[] paramArrayOfFloat) {
        this.sUErrors = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsUErrors2(float[] paramArrayOfFloat) {
        this.sUErrors2 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsUErrors3(float[] paramArrayOfFloat) {
        this.sUErrors3 = paramArrayOfFloat;
        return this;
    }


    public DJGRegulationTransformerViewInfo setsURoundErrors(float[] paramArrayOfFloat) {
        this.sURoundErrors = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsURoundErrors2(float[] paramArrayOfFloat) {
        this.sURoundErrors2 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsURoundErrors3(float[] paramArrayOfFloat) {
        this.sURoundErrors3 = paramArrayOfFloat;
        return this;
    }

    public DJGRegulationTransformerViewInfo setsXb(Float paramFloat) {
        this.sXb = paramFloat;
        return this;
    }

    private String testCompany;
    private String madeCompany;
    private String taskNumber;
    private String time;
    private String name;
    private String num;
    private String address;
    private String  devciceName;
    private String  deviceType;

    public String getDevciceName() {
        return devciceName;
    }

    public void setDevciceName(String devciceName) {
        this.devciceName = devciceName;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTestCompany() {
        return testCompany;
    }

    public void setTestCompany(String testCompany) {
        this.testCompany = testCompany;
    }

    public String getMadeCompany() {
        return madeCompany;
    }

    public void setMadeCompany(String madeCompany) {
        this.madeCompany = madeCompany;
    }

    public String getTaskNumber() {
        return taskNumber;
    }

    public void setTaskNumber(String taskNumber) {
        this.taskNumber = taskNumber;
    }

    public String getSRatedSecondary2() {
        if (sRatedSecondary2 == 0F) {
            return "";
        }
        return DKPowerData.PT2ndVoltage.getStringByNumber(this.sRatedSecondary2);
    }

    public DJGRegulationTransformerViewInfo setsRatedSecondary2(float sRatedSecondary2) {
        this.sRatedSecondary2 = sRatedSecondary2;
        return this;

    }


    public String getSGrade() {
        return DKPowerData.PTGrade.getStringByNumber(this.sGrade2);
    }

    public DJGRegulationTransformerViewInfo setsGrade(short sGrade) {
        this.sGrade = sGrade;
        return this;
    }

    public String getSRatedSecondary() {
        if (sRatedSecondary == 0F) {
            return "";
        }
        return DKPowerData.PT2ndVoltage.getStringByNumber(this.sRatedSecondary);
    }

    public DJGRegulationTransformerViewInfo setsRatedSecondary(float sRatedSecondary) {
        this.sRatedSecondary = sRatedSecondary;
        return this;

    }


    public String getSGrade2() {
        return DKPowerData.PTGrade.getStringByNumber(this.sGrade2);
    }

    public DJGRegulationTransformerViewInfo setsGrade2(short sGrade2) {
        this.sGrade2 = sGrade2;
        return this;
    }

}
